/*
 * @Author: HuangYue
 * @Date: 2022-04-12 15:36:34
 * @LastEditors: HuangYue
 * @LastEditTime: 2022-04-28 00:21:07
 * @FilePath: /graduation/src/services/mockApi/hospitalManage.js
 * @Description:
 */
import { request } from 'umi';

export async function getAllHospital(params, options) {
  return request('/api/getAllHospital', {
    method: 'GET',
    params: { ...params },
    ...(options || {}),
  });
}
export async function addHospital(params, options) {
  return request('/api/addHospital', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: params,
    ...(options || {}),
  });
}
export async function deleteHospital(params, options) {
  return request('/api/deleteHospital', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: params,
    ...(options || {}),
  });
}
export async function updateHospital(params, options) {
  return request('/api/updateHospital', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: params,
    ...(options || {}),
  });
}
